package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum ResultCode {
    AGENCY_YES( "1", "您已经是代理"),
    AGENCY_NO( "0", "您不是代理"),

    TALENT_PRICE("2","您是达人"),
    MANUFACTURERRS_PRICE("3","您是厂家"),

    SUCCESS("000000", "成功"),
    FAIL("000001", "失败"),
    ACCT_NOT_EXIST("000003", "用户账户不存在"),
    USER_EXISTED("000004", "用户已存在"),
    USERNAME_OR_PASSWORD_ERROR("000005", "用户名或密码错误"),
    GET_OPENID_FAIL("000006", "获取openid失败"),
    EXCEED_SMS_LIMIT("000007", "短信发送数量超过限制"),
    TRY_LATER("000008", "请稍后再试"),
    SMS_CODE_WRONG("000009", "短信验证码错误"),
    PHONE_EXISTS("000011", "该手机号已经存在"),
    OPENID_EXISTS("000012", "该微信号已经存在"),
    PASSWORD_ERROR("000013", "密码错误"),
    CAPTCHA_WRONG("000014", "图形验证码错误"),
    SEND_SMS_FAIL("000015", "短信发送失败"),
    CAN_NOT_INVITE_YOURSELF("000016", "不能邀请你自己"),
    NOT_ENOUGH_TO_START_WITHDRAW("000017", "未达到最低提现金额"),
    ADMIN_ROLE_ERROR("000018", "管理员角色标识格式错误"),
    ADMIN_ROLE_IS_EXISTS("000019", "此管理员角色已经存在"),
    DO_NOT_BIND_AGAIN("000020", "请勿重复绑定"),
    INVITE_CODE_ERROR("000021", "邀请码错误"),
    MEMBER_CARD_EXPIRE("000022", "您的会员已过期，暂时无法领取或购买此商品"),
    KILL_NOT_START("000023", "秒杀还未开始"),
    KILL_HAS_END("000024", "秒杀已经结束"),
    ACTIVE_CODE_INVALID("000025", "激活码不存在"),
    NOT_HAVE_ALIPAY_ACCOUNT("000026", "未填写支付宝账号"),
    ONLY_ONE_BANK_CARD("000027", "一个用户只能绑定一张银行卡"),
    NOT_HAVE_BANK_CARD("000028", "未填写银行卡账号"),
    ADDRESS_NOT_EXISTS("000029", "未填写收货地址"),
    CAN_NOT_PAY_UNDER_ZERO("000030", "支付金额不能为0元"),
    USER_NOT_EXISTS("000031", "用户不存在"),
    SKU_STOCK_NOT_ENOUGH("000032", "商品库存不足"),
    SKU_ACTIVITY_STOCK_NOT_ENOUGH("000033", "活动商品库存不足"),
    OVER_ACTIVITY_STOCK_LIMIT("000034", "购买数量超出活动限购数量"),
    LOWER_THAN_COST_PRICE("000035", "商品价格异常"), // 不可以低于成本价
    ORDER_SKU_NOT_DELIVERY("000036", "收货地址不在配送范围"),
    ADDRESS_MORE_THAN_LIMIT("000037", "收货地址数量不能超过20个"),
    OVER_MAX_SHOPPING_CART("000038", "购物车内商品数量最多20件"),
    OVER_MIN_SHOPPING_CART("0000380", "购物车内商品数量不能小于10件"),
    REFUND_EXCEED_PAID("000039", "退款总金额不得超过申请退款的总金额"),
    OVER_MAX_COLLECTION("000040", "商品收藏数量最多2000，请清理再收藏"),
    PACKAGES_INVALID("000041", "该套餐活动已失效"),
    PACKAGES_ERROR("000042", "套餐订单异常"),
    COUPON_CLOSE("000043", "优惠券已失效"),
    ORDER_COIN_AMOUNT_CHANGE("000044", "订单积分使用情况有变化，请重新下单"),
    ORDER_COUPON_CHANGE("000045", "订单优惠券使用情况有变化，请重新下单"),
    SKU_DELETED("000046", "订单中存在已被删除的商品，请移除此商品后再下单"),
    SKU_HIDDEN("000047", "订单中存在已被下架的商品，请移除此商品后再下单"),
    INVOICE_ACCOUNT_EXISTS("000048", "此开票账号已存在，请勿重复添加"),
    INVOICE_ACCOUNT_LIMIT("000049", "开票账号最多保存20个，请删除后再添加"),
    WELFARE_NOT_JOIN_AGAIN("000050", "您已经参加过此活动，不能重复参加活动"),
    ACTIVITY_NOT_START("000051", "活动未开始"),
    ACTIVITY_HAS_END("000052", "活动已结束"),
    COIN_NOT_ENOUGH("000053", "积分余额不足"),
    EXP_NOT_ENOUGH("000054", "经验不足，不可以参加活动"),
    COIN_PRODUCT_STOCK_NOT_ENOUGH("000056", "积分商品库存不足"),
    COIN_PRODUCT_EXCHANGE_OVER_MAX("000057", "您兑换数量超过上限"),
    COIN_PRODUCT_LOTTERY_OVER_MAX("000057", "您抽奖次数超过上限"),
    AREA_ERROR("000058", "抱歉，此地址无法正常保存，请切换添加地址方式"),
    USER_ADDRESS_NOT_EXISTS("000059", "此收货地址不存在或已被删除"),
    SHOP_USER_EXISTS("000060", "此用户已经有店长身份"),
    IS_CLERK("000061", "此用户已经是店员，不可以重复添加"),
    STAFF_QRCODE_EXPIRE("000062", "身份码已过期，请刷新后再试"),
    ORDER_SKU_HAS_VERIFY("000063", "此商品已被核销，请不要重复核销"),
    SIGN_IN_TODAY("000064", "您今日已签到，不可以重复签到"),
    MUST_BE_EIGHT_PRIZE("000065", "大转盘或九宫格抽奖必须为8个奖品"),
    LOTTERY_PROBABILITY_MUST_BE_100("000066", "所有奖品的中奖概率之和必须为100"),
    YOU_ARE_NOT_MEMBER_OR_MEMBER_NOT_VISIBLE("000067", "本课程仅限会员可见，您当前不是会员或者会员级别不在授权范围内"),
    NOT_BUY_COURSE("000068", "本课程为付费课程，您还未购买此专栏或课程"),
    ONE_COLUMN_MAX_COURSE_COUNT("000069", "同一个专栏最多只能有1000个课程"),
    SKU_COMMISSION_SUM_ERROR("000070", "SKU佣金总和要和SKU销售价格相等"),
    SAME_SKU_COMMISSION("000071", "此SKU佣金配置已存在"),
    ALREADY_CAPTAIN("000072", "此用户原本就是这位团员的上级团长"),
    ALREADY_MEMBER("000073", "此用户是这位团员的下级团员"),
    NO_MEMBER("000074", "原团长下面无任何团员"),
    COMMENT_CONTENT_ERROR("000075", "评论内容中包含违规内容，请修改"),
    COMMENT_IMAGE_ERROR("000076", "评论图片中包含违规内容，请修改"),
    IS_OVER_PARTNER("000077", "此用户已经是合伙人及以上身份，不可以再设置为合伙人身份"),
    BE_PARTNER_BEFORE("000078", "请先设置用户成为合伙人，再设置用户成为合伙人运营中心"),
    IS_OVER_SHAREHOLDER("000079", "此用户已经是董事及以上身份，不可以再设置为董事身份"),
    BE_SHAREHOLDER_BEFORE("000080", "请先设置用户成为董事，再设置用户成为董事运营中心"),
    NOT_HAVE_RELATIONSHIP("000081", "此用户无上级"),
    CARD_POINT_NOT_ENOUGH("000082", "嗨币不足"),
    OVER_PAID("000083", "退款总金额不可以超过支付总金额"),
    COMMISSION_TOO_LOWER("000084", "平均业绩分红小于0.01元，金额过低，无法发放"),
    LOTTERY_FINISHED("000085", "此活动已经结束"),
    LOTTERY_MUST_HAS_THANK("000086", "抽奖活动必须要有谢谢参与"),
    DATA_REPEAT("000087", "此数据已经存在，不可以重复"),
    SHOP_APPLY_NOT_EXISTS("000087", "商圈合作不存在"),
    IS_OVER_MEMBER("000088", "此用户已经是会员及以上身份，不可以再设置为会员身份"),
    SHOP_NOT_YOU("000089", "您不是该门店主人"),
    CARD_POINT_CAN_NOT_BUY_IDENTITY("000090", "嗨币不可以用来购买此商品"),
    MAX_BARGAIN("000090", "您当前选择的购买数量已达到此商品砍价活动最高参与数量，不可以再参与，可以尝试下调购买数量或者参加其他商品的砍价活动。"),
    HAS_BEEN_BARGAIN("000091", "您已经帮助好友砍价过1次，同个砍价活动只能砍价1次"),
    OVER_BARGAIN_VALID_TIME("000092", "已经超过了砍价有效时间"),
    BARGAIN_NOT_IN_TIME("000093", "当前砍价活动已经结束或还未开始"),
    BARGAIN_OFF("000094", "当前砍价活动已关闭"),
    BARGAIN_HELPER_OVER("000095", "帮砍人数超过了最大限制"),
    BARGAIN_HELPER_AMOUNT("000096", "砍价金额累计超过了最大限制"),
    APPOINTMENT_MORE_LIMIT("000097", "该时间预约人数已满"),
    APPOINTMENT_SETTING_NOT_SHOP("000098", "门店信息不能为空"),
    NOT_THIS_SHOP_CLERK("000099", "您非本店店员，无法核销"),
    SETTING_APPOINTMENT("000100", "请选择预约时间"),
    NOT_HAVE_APPOINTMENT("000101", "暂时不可预约"),
    NOT_IN_APPOINTMENT_TIME("000102", "该时间暂时不可预约"),
    EXCHANGE_CARD_ONLY_PAY_ONE("000103", "兑换卡每次只能使用一张"),
    EXCHANGE_CARD_INVALID("000104", "此兑换卡无法使用"),
    NOT_HAS_PAY_PASSWORD("000105", "未设置安全密码，请先设置"),
    PAY_PASSWORD_ERROR("000106", "安全密码错误"),
    INSUFFICIENT_BALANCE("000107", "余额不足"),
    SAPLING_OFFLINE("000108", "此树苗已下架，请选择其他树苗"),
    SAPLING_OUT_OF_STOCK("000109", "此树苗暂无库存，请选择其他树苗"),
    MAX_SAPLING("000110", "最多同时种植3颗果树，请收获后再来领取其他树苗哦~"),
    TASK_HAS_GOT("000111", "任务已经领取过"),
    TASK_OFF("000112", "任务已下架"),
    TASK_OUT_OF_STOCK("000113", "任务已被领取完了"),
    TASK_LIMIT("000114", "您已经完成此任务了，请选择其他任务吧~"),
    DO_NOT_HAVE_SHOP("000115", "您当前不是商家，请联系客服"),
    DO_NOT_HAVE_AREA("000116", "您还未开通区域代理，请联系您的客服开通区域代理"),
    PRODUCT_DELETED("000117", "兑换商品已删除"),
    EXCHANGE_PRODUCT_NOT_ENOUGH("000118", "兑换商品库存不足"),
    EXCHANGE_NEED_MILK_NOT_ENOUGH("000119", "兑换所需的牛奶不足"),
    TREE_NOT_HARVEST("000120", "树还未达到收获状态"),
    NEED_GRASS_NOT_ENOUGH("000121", "需要的草料不足"),
    NEED_WATER_NOT_ENOUGH("000122", "需要的水不足"),
    NEED_FERTILIZER_NOT_ENOUGH("000123", "需要的肥料不足"),
    HARVEST_TREE_NOT_NEED_WATER("000124", "已达到收获阶段不需要浇水"),
    NOT_BOSS_OR_SHOPPER("000125", "只有店长或老板才可以进行此操作"),
    NOT_PERMISSION_VERIFY("000126", "您无权核销此商品"),
    RELATIONSHIP_CONFLICT("000127", "上下级关系冲突，此人已经是您的上级，不能被添加为下级！"),
    ANOTHER_PAY_INVALID("000128", "代付订单已失效"),
    ORDER_STATUS_ERROR("000129", "订单状态非待支付状态，所以不可支付"),
    USER_BAN("000130", "账号已被限制使用"),
    MERCHANT_EXISTS("000131", "商家已存在"),
    RECOMMEND_SPU_EXCEEDED("000132", "推荐商品超过限制数量"),
    MSG_USER_USERNAME_EXISTS("000133", "该管理员已经绑定客服账号，不可以重复绑定"),
    MERCHANT_NOT_EXISTS("000134", "该管理员不存在"),
    ALREADY_CURRENT_LEVEL("000135", "已经是当前等级"),
    IDENTITY_NOT_EXIST("000136", "身份不存在"),
    IDENTITY_NOT_REACH_PARTNER("000137", "合伙人以上才可以设置为讲师"),
    OPEN_COMMENT_FAIL("000138", "直播开启后不能修改评论为开启"),
    LIVE_TIME_ERROR("000139", "开播时间和结束时间间隔不得短于30分钟，不得超过24小时"),
    START_TIME_ERROR("000140", "开播时间需要在当前时间的10分钟后 并且 开始时间不能在 6 个月后"),
    ASSISTANT_NOT_EXIST("000141", "助理不存在，请检查手机号"),
    OPERATION_ROOM_FAIL("000142", "主播和用户才操作直播间商品"),
    ROOM_BAN("000143", "当前直播间被封禁"),
    ADMIN_NOT_EXISTS("000144", "该管理员不存在"),
    FREIGHT_CAN_NOT_BE_EMPTY("0000145", "每个商户至少保留1条运费模板，不可以全部删除"),
    PARTNER_ACCOUNT_NOT_ENOUGH("000146", "合伙人账号赠送名额不足"),
    OVER_PARTNER_LEVEL("000147", "受赠对象已经为合伙人身份或以上身份"),
    GIVER_NOT_EXIST("000148", "赠送人身份不存在"),
    AREA_ACCOUNT_NOT_ENOUGH("000149", "区域账号名额不存在"),
    COUPON_NOT_VALID("000150", "优惠券异常，暂时不可以使用"),
    DEPOSIT_NOT_NEED_AUDIT("000151", "当前保证金申请不是待审核状态"),
    ANCHOR_NOT_ONLINE("000152", "当前主播不在线"),
    NOT_ANCHOR("000153", "当前不是主播身份"),
    EDIT_WINDOWS_FAIL("000154", "无法编辑当前橱窗商品"),
    PLATFORM_HIDDEN("000155", "当前为平台隐藏状态，无法修改状态"),
    NOT_WAIT_AUDIT("000156", "当前不是待审核状态"),
    NOT_YOUR_MERCHANT("000157", "不是你的商户"),
    NOT_AUDIT_PASS("000158", "审核未通过"),
    NOT_EDIT_AUDIT_PASS("000159", "审核通过无法修改"),
    NOT_AUDIT_ADMIN("000160", "不是当前设置审核人员"),
    NOT_NEED_SECOND_AUDIT("000161", "不需要复审"),
    AUDIT_FAIL("000162", "当前不能进行审核"),
    AUDIT_PASS_NOT_EDIT("000163", "审核通过无法修改"),
    SUBSCRIBE_MESSAGE_FAIL("000164", "订阅物流消息失败"),
    TENANT_CLOSE("000165", "商户已被注销，无法登录"),
    OUT_OF_AMOUNT_RANGE("000166", "超过最大金额限制"),
    NOT_LOGIN("000167", "请登录"),
    AFTER_SALE_COUNT_OVER("000168", "售后数量超过购买数量"),
    FREEZE_POINT("000169", "部分金额被冻结，提现余额不足"),
    TENANT_POINT_NOT_ENOUGH("000170", "商户余额不足，无法处理此售后，请联系平台客服进行商户余额充值后，再操作。"),
    NEED_RELATE_ID("000171", "请填写关联编号"),
    NOT_CREATE_ADMIN("000172", "不是创建人无法修改"),
    NICKNAME_EXISTED("000173", "管理员昵称存在"),
    NOT_CHOICE_AREA("000174", "没有选择区域"),
    AREA_APPLY_FAIL("000175", "存在无法申请区域"),
    NOT_SHOP_MEMBER("000176", "不是当前店铺下成员"),
    AREA_APPLY_WAIT_AUDIT("000177", "当前区域已被申请"),
    PARTNER_REPEAT("000178", "您已经是合伙人了，请不要重复购买合伙人哦~"),
    SWITCH_IDENTITY_FAIL("000179", "无法切换当前身份"),
    NOT_TEACHER("000180", "当前还不是讲师"),
    ANNOUNCEMENT_NOT_EXIST("000181", "通知模版不存在"),
    SHOP_NOT_EXIST("000182", "店铺不存在"),
    BLOG_NOT_FIND("000183", "博文无法访问"),
    NOT_TEACHER_OR_SHAREHOLDER("000184", "当前不是讲师或运营中心"),
    MEETING_LIMIT("000185", "报名人数已满"),
    MEETING_CLOSE("000186", "会场已关闭"),
    MEETING_USER_NOT_EXIST("000187", "未报名当前会场"),
    VERIFY_FAIL("000188", "没有核销权限"),
    MEETING_USER_EXIST("000189", "已经报名当前会场"),
    MEETING_END("000190", "会场已结束"),
    START_END_ERROR("000191", "开始时间结束时间设置错误"),
    SPU_COMMISSION_ERROR("000192", "佣金比例过高，请修改"),
    NEED_SECURITY_PASSWORD("000193", "请输入安全密码"),
    AFTER_ONE_MINUTE("000194", "安全密码错误五次,请在1分钟后再操作"),
    UPLOAD_FILE_URL("000195", "请上传发票文件连接"),
    NOT_SHAREHOLDER("000196", "您当前不是运营中心"),
    NOT_RECOMMEND("000197", "当前不是好物推荐官"),
    AUDIT_COMPLETED("000198", "审核已完成"),
    SELECTION_APPLY_EXIST("000199", "选品申请已存在"),
    INVITE_NOT_BOSS("000200", "邀请人不是老板"),
    SHOP_INVITE_EXISTS("000201", "商家推荐人已经存在，不可以再设置"),
    NOT_HAVE_BOSS_IDENTITY("000202", "此用户没有老板身份"),
    NOT_BOSS("000203", "当前不是老板"),
    COST_PRICE_OVER_33("000204", "佣金商品、兑换商品、免单商品的供货价需要小于销售价的3.3折"),
    SPU_EXCEPTION("000205", "当前商品异常"),
    NOT_AGENT_MEMBER("000206", "当前不是会员代理"),
    REFUND_AMOUNT_OVER_MAX("000207", "退款金额超过最大退款金额"),
    MEMBER_ACCOUNT_NOT_ENOUGH("000208", "VIP会员账号赠送名额不足"),
    IS_CURRENT_USER("000209", "转账用户为当前账号,请重新输入手机号"),
    NOT_UNION_FOUNDER("000210", "当前不是联合创始人"),
    SUBSCRIBE_FAIL("000211", "超过订阅时间"),
    SUBSCRIBE_SPU_FAIL("000212", "订阅秒杀商品失败"),
    OVER_MAX_WITHDRAW_A_DAY("000213", "已经超过每日最高提现额"),
    DO_NOT_HAVE_OPENID("000214", "请先登录过嗨跑全球好物小程序后，才可以使用提现到微信零钱"),
    NOT_COMPANY("000215", "您当前还没有股东身份"),
    FREE_NOT("000216", "当前订单中包含正在免单排队的商品，请移除此商品或等待完成免单后再下单"),
    LOTTERY_OPPORTUNITY_NOT_ENOUGH("000217", "抽奖机会不足"),
    RUSH_BUY_ONLY_SINGLE("000218", "抢购商品订单中，只允许有1种商品"),
    PARTNER_SPU_ORDER_EXIST("000219", "已购买过合伙人商品"),
    PARTNER_SPU_EXIST("000220", "当前订单包含只有合伙人才能购买的商品"),
    PARTNER_SPU_ONLY1("000221", "合伙人商品只能购买一个"),
    NOT_PARTNER("000222", "当前您不是达人,请申请达人后再加入"),
    SPU_WINDOWS_EXIST("000223", "当前商品已添加到橱窗"),
    NOT_MEMBER_OR_PARTNER("000224", "当前身份不是会员或合伙人"),
    OVER_SPU_LIMIT_COUNT("000225", "商品限购"),
    NEED_MEMBER_IDENTITY("000226", "请购买会员身份"),
    FLASH_SALE_LIMIT("000227", "秒杀商品限购"),
    FIRST_AUDIT_NOT_PASS("000228", "初审未通过"),
    NEW_ZONE_LIMIT1("000229", "新人专区商品限购一件"),
    NEW_ZONE_PURCHASED("000230", "已购买过新人专区商品"),
    SPU_NEED_NEW_PEOPLE("000231", "当前商品限新人购买"),
    AFTER_SALE_BEFORE_7_DAY("000232", "7天后无法申请退款"),
    LIMIT_COUNT_OUT_NUMBER("000234", "您购买的商品已超出限购数量"),
    ACTIVITY_OFF("000235", "该新人活动已关闭"),


    AFTER_OPENING_EDIT("000300", "开启后不能修改"),
    MIN_MONEY("000301", "最小金额不能低于2000"),
    ID_CARD_ERROR("000302", "身份证号码错误"),
    PHONE_ERROR("000303", "手机号错误"),
    NAME_IS_NULL("000304", "请填写签约人"),
    IMAGE_IS_NULL("000305", "请上传营业执照"),
    CARD_CODE_ERROR("000306", "银行卡号错误"),
    SUBMIT_SUCCESS("000307", "已提交过申请,请勿重复提交"),
    DETAILS_IS_NOT_NULL("000308", "数据未找到"),
    REMARK_IS_NOT_NULL("000309", "请填写拒绝原因"),
    CREATE_CARD_LEVEL("000309", "未找到跟签约金额相匹配的奖励卡,请先创建卡等级"),

    PARAMETER_NULL("000310", "参数为空,不能进行操作"),

    BLIND_BOX_NULL("000311", "盲盒不存在"),
    BLIND_BOX_ENABLED("000312", "盲盒已开启,不能进行审核"),

    CANNOT_REPEAT("000313", "盲盒已审核通过,不能重复审核"),
    BLIND_BOX_WHETHER("000314", "盲盒已开启,不能重复开启"),
    BLIND_BOX_NOT_APPROVED("000315", "盲盒未审核,不能开启"),

    BLIND_BOX_IS_NULL_PRIZE("000316", "盲盒未添加奖项,不能开启"),
    IS_NULL_PRIZE("000317", "奖项不存在"),
    ACTIVITY_UNABLE_TO_DELETE("000318", "请您关闭盲盒再进行删除"),
    PHONE_ALREADY_EXISTS("000319", "当前手机号已存在,正在审核中"),
    CANNOT_EDIT_CATEGORY("000320", "平台类目，不可编辑"),
    CANNOT_DELETE_CATEGORY("000321", "平台类目，不可删除"),



    ACTIVITY_STATUS_OPEN("000401", "已有活动正在开启,新人专区活动不能开启多条"),
    ACTIVITY_IS_NULL("000402", "活动信息已不存在"),
    SKU_IS_EXIST("000403", "此活动下此规格的商品已存在一种，不可重复添加"),
    BIND_SKU_IS_NULL("000404", "绑定活动商品信息不存在"),
    ACTIVITY_STOCK_ERROR("000405", "商品编号 %s 的活动库存不能大于商品原有库存,添加失败"),
    ACTIVITY_STOCK_ERROR2("000406", "商品编号 %s 的活动商品库存小于0, 添加失败"),
    ACTIVITY_AUDIT_STATUS("000407", "该活动审核没有通过，不能进行开启操作"),
    AUDIT_STATUS_ERROR("000408", "该活动审核状态不是未审核，不能进行操作"),

    CARD_CONSUMPTION_FUND_CODE("0000001", "请填写卡序号"),
    CARD_CONSUMPTION_FUND_IMAGE("0000002", "请上传卡背景图片"),
    CARD_CONSUMPTION_FUND_NULL("0000003", "消费金不存在"),
    CARD_CONSUMPTION_FUND_WHETHER("0000004", "已有其它消费金开启,不能开启当前消费金"),
    CARD_CONSUMPTION_FUND_ACCOUNT("0000005", "请填写拒绝理由"),
    CARD_CONSUMPTION_FUND_ITEM("0000006", "请选择消费金商品"),
    CARD_CONSUMPTION_FUND_CARD_CODE("0000007", "卡号已存在"),
    CARD_CONSUMPTION_FUND_SPU_IS_NULL("0000008", "商品不存在"),
    CARD_CONSUMPTION_AMOUNT_NOT_ENOUGH("0000009", "消费金余额不足"),
    CARD_CONSUMPTION_ACTIVITY_IS_NULL("0000010", "活动不存在"),

    // 分享赚
    SHARE_TITLE_IS_NULL("000320", "标题不能为空"),
    SHARE_PLEASE_SELECT("000321", "请选择佣金/嗨币到账时间"),
    SHARE_ACTIVITY("000322", "'活动不存在,无法进行操作"),
    SHARE_ACTIVITY_IS_NULL("000323", "'活动已删除,无法进行操作"),
    SHARE_CANNOT_OPERATE_DURING_OPENING("000324", "分享赚开启期间不能绑定商品,如需绑定新商品请关闭之后再进行操作"),
    SHARE_UNBOUND_ITEM("000325", "分享赚未绑定商品,无法开启"),
    SHARE_FREEZE("000326", "该条分享赚活动已被平台冻结,无法开启,如有疑问,请联系平台管理员或客服"),
    SHARE_ITEM_UNABLE_REMOVE("000327", "该条分享赚活动已被平台冻结,商品无法解除,如有疑问,请联系平台管理员或客服"),
    SHARE_COMPLETED("000328", "活动已结束,请您留意下次开启时间"),
    SHARE_UNUSUAL("000329", "商品异常或商品已下架,无法购买,请您联系客服进行处理"),
    SHARE_PRICE_UNUSUAL("000330", "分享赚商品价格异常,请联系客服处理"),
    SHARE_PRODUCT_NOT_FOUND("000331", "参数错误,请联系管理员"),
    SHARE_SHARE_RECORDS("000332", "该条记录不存在"),
    SHARE_SHARE_ISSUED("000333", "佣金/嗨币,已发放,无法进行操作"),
    COIN_INVENTORY_NOT("000334","消费金库存不足"),
    POINT_INVENTORY_NOT("000335","嗨币库存不足"),

    //达人
    COUNT_INSUFFICIENT("00000701", "您当前粉丝量未达到开通要求"),
    IS_INSUFFICIENT("00000702", "您已经是达人,不能再次申请"),
    NO_SHOPSTER("00000700","您还不是小店,请去申请"),

    //代理
    CANNOT_SET_AS_PROXY_IDENTITY("00000703", "用户未关注店铺,不能设置为代理身份"),
    INCOMPLETE_USER_INFORMATION_CANNOT_SET_AS_PROXY_IDENTITY("00000704", "用户信息不完善,不能设置为代理身份"),
    DISCOUNTS_NOT_AVAILABLE_FOR_USER_IDENTITY("00000705", "用户未设置代理身份,无法设置折扣"),

    LOTTERY_NOT("000336","抽奖活动不存在"),

    // 抽奖 新
    LOTTERY_MUST_PRIZE_ID("000340", "常规商品必须要有prizeId"),
    LOTTERY_MUST_PRIZE_IMAGE("000341", "奖品中必须要有商品图片"),
    LOTTERY_MUST_RECEIVE("000342", "用户必须领取奖品才能发货"),


    ;
    private String code;
    private String msg;

    public static ResultCode parseByCode(String code) {
        for (ResultCode status : ResultCode.values()) {
            if (status.getCode().equals(code)) {
                return status;
            }
        }

        return null;
    }

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
